<div class="row-fluid">
    <div class="span12">
        <div class="box">
            <div class="box-head">
                <h3 style="text-transform:uppercase;">Permissões</h3>
                <div>
                    <label style="margin:2px 110px 0 !important; font-weight: bolder;">
                        <input id="all" class="uniform" style="position:relative; top:5px;" type="checkbox" checked="checked" />
                        MARCAR/DESMARCAR TODOS
                    </label> 
                </div>
            </div>
            <div class="box-content">
                <form action="?p=admgrupos_usuarios&opcao=cadp" method="post" class='validate form-horizontal'>
                    <input type="hidden" name="id_grupo" value="<?=$_GET['id']?>" />
                    <div id="permissions">
                        <?=$dados['html']?>
                    </div>
                    <div class="form-actions">
                        <input type="submit" value="Salvar" class='btn btn-primary'>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function() {
        $('#all').click(function(){
            if($(this).is(':checked')){
                $('.group').attr("checked",true).parent().attr('class','checked');
            }
            else{
                $('.group').attr("checked",false).parent().removeAttr('class');
            }
        });
    });
</script>